<template>
  	<el-card :body-style="{ padding: '0px' }">
      <img src="../../assets/person.jpg" class="image">
      <div style="padding: 14px;">
        <span>{{item.name}}</span>
        <div class="bottom clearfix">
          <p>{{item.introduction}}</p>
            <el-button  type="primary" class="button" size="small" @click="consult(item)">咨询</el-button>
        </div>
      </div>
    </el-card>
</template>
<style scoped>
  .bottom {
    margin-top: 13px;
    line-height: 2.0rem;
  }

  .button {
    float: right;
    margin-left:10px;
  }

  .image {
    width: 100%;
    display: block;
  }

  .clearfix:before,
  .clearfix:after {
      display: table;
      content: "";
  }
  
  .clearfix:after {
      clear: both
  }
</style>
<script type="text/javascript">
	export default {
	  props:['item'],
    methods: {
      consult: function(item){
        this.$router.push({
          name: 'consultProf',
          params: {
            expert: item
          }
        })    
      }
    }
	}
</script>